LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := tiny_rtsp_svr
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog

MY_CPP_LIST := $(wildcard $(LOCAL_PATH)/librtsp/*.c)
MY_CPP_LIST += net_yrom_screenrecorder_rtsp_RtspServer.c
LOCAL_SRC_FILES := $(MY_CPP_LIST:$(LOCAL_PATH)/%=%)

MY_HEADERS_LIST := $(wildcard $(LOCAL_PATH)/librtsp/*.h)
LOCAL_C_INCLUDES := $(MY_HEADERS_LIST:$(LOCAL_PATH)/%=%)
LOCAL_C_INCLUDES += net_yrom_screenrecorder_rtsp_RtspServer.h

$(warning $(LOCAL_C_INCLUDES))

include $(BUILD_SHARED_LIBRARY)